﻿using System;
using System.Collections.Generic;
using System.Text;
using Animals.Model;
using Dogs.Business;
using Dogs.Controller;

namespace Dogs.Model
{
    public class ParentsPair
    {
        private long _animalId;

        // TODO : Change Animals to IDs

        private long _fatherId;
        private long _motherId;

        private AnimalFacade _animalFacade = null;

        public ParentsPair()
        {
            _animalFacade = new AnimalFacadeImpl();
        }

        public ParentsPair(long AnimalId, long FatherId, long MotherId)
        {
            bool isOnlyOneParent = (FatherId == -1 || MotherId == -1) && (FatherId > -1 || MotherId > -1);

            this._animalId = AnimalId;
            this._fatherId = FatherId;
            this._motherId = MotherId;
        }

        public ParentsPair(long AnimalId, long ParentId)
        {
            this._animalId = AnimalId;
            
        }
        
        public long AnimalId
        {
            get { return _animalId; }
            set { _animalId = value; }
        }

        public long FatherId
        {
            get { return _fatherId; }
            set { _fatherId = value; }
        }

        public long MotherId
        {
            get { return _motherId; }
            set { _motherId = value; }
        }
    }
}
